<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>LCOV - self_test2.info - poll/unix/poll.c</title>
  <link rel="stylesheet" type="text/css" href="../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LCOV - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="10%" class="headerItem">Current view:</td>
            <td width="35%" class="headerValue"><a href="../../index.html">top level</a> - <a href="index.html">poll/unix</a> - poll.c<span style="font-size: 80%;"> (source / <a href="poll.c.func.html">functions</a>)</span></td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerCovTableHead">Hit</td>
            <td width="10%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
          </tr>
          <tr>
            <td class="headerItem">Test:</td>
            <td class="headerValue">self_test2.info</td>
            <td></td>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">38</td>
            <td class="headerCovTableEntry">143</td>
            <td class="headerCovTableEntryLo">26.6 %</td>
          </tr>
          <tr>
            <td class="headerItem">Date:</td>
            <td class="headerValue">2011-07-03</td>
            <td></td>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">3</td>
            <td class="headerCovTableEntry">10</td>
            <td class="headerCovTableEntryLo">30.0 %</td>
          </tr>
          <tr>
            <td></td>
            <td></td>
            <td></td>
            <td class="headerItem">Branches:</td>
            <td class="headerCovTableEntry">25</td>
            <td class="headerCovTableEntry">106</td>
            <td class="headerCovTableEntryLo">23.6 %</td>
          </tr>
          <tr><td><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
        </table>
      </td>
    </tr>

    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td>
<pre class="sourceHeading">           Branch data     Line data    Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum">       1 </span>                :            : /* Licensed to the Apache Software Foundation (ASF) under one or more</a>
<span class="lineNum">       2 </span>                :            :  * contributor license agreements.  See the NOTICE file distributed with
<span class="lineNum">       3 </span>                :            :  * this work for additional information regarding copyright ownership.
<span class="lineNum">       4 </span>                :            :  * The ASF licenses this file to You under the Apache License, Version 2.0
<span class="lineNum">       5 </span>                :            :  * (the &quot;License&quot;); you may not use this file except in compliance with
<span class="lineNum">       6 </span>                :            :  * the License.  You may obtain a copy of the License at
<span class="lineNum">       7 </span>                :            :  *
<span class="lineNum">       8 </span>                :            :  *     http://www.apache.org/licenses/LICENSE-2.0
<span class="lineNum">       9 </span>                :            :  *
<span class="lineNum">      10 </span>                :            :  * Unless required by applicable law or agreed to in writing, software
<span class="lineNum">      11 </span>                :            :  * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
<span class="lineNum">      12 </span>                :            :  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<span class="lineNum">      13 </span>                :            :  * See the License for the specific language governing permissions and
<span class="lineNum">      14 </span>                :            :  * limitations under the License.
<span class="lineNum">      15 </span>                :            :  */
<span class="lineNum">      16 </span>                :            : 
<span class="lineNum">      17 </span>                :            : #include &quot;apr.h&quot;
<span class="lineNum">      18 </span>                :            : #include &quot;apr_poll.h&quot;
<span class="lineNum">      19 </span>                :            : #include &quot;apr_time.h&quot;
<span class="lineNum">      20 </span>                :            : #include &quot;apr_portable.h&quot;
<span class="lineNum">      21 </span>                :            : #include &quot;apr_arch_file_io.h&quot;
<span class="lineNum">      22 </span>                :            : #include &quot;apr_arch_networkio.h&quot;
<span class="lineNum">      23 </span>                :            : #include &quot;apr_arch_misc.h&quot;
<span class="lineNum">      24 </span>                :            : #include &quot;apr_arch_poll_private.h&quot;
<span class="lineNum">      25 </span>                :            : 
<span class="lineNum">      26 </span>                :            : #if defined(HAVE_POLL)
<span class="lineNum">      27 </span>                :            : 
<span class="lineNum">      28 </span>                :            : #ifdef HAVE_ALLOCA_H
<span class="lineNum">      29 </span>                :            : #include &lt;alloca.h&gt;
<span class="lineNum">      30 </span>                :            : #endif
<span class="lineNum">      31 </span>                :            : 
<a name="32"><span class="lineNum">      32 </span>                :            : static apr_int16_t get_event(apr_int16_t event)</a>
<span class="lineNum">      33 </span>                :            : {
<span class="lineNum">      34 </span>                :<span class="lineCov">          5 :     apr_int16_t rv = 0;</span>
<span class="lineNum">      35 </span>                :            : 
<span class="lineNum">      36 </span>[<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>][<span class="branchNoExec" title="Branch 2 was not executed"> # </span><span class="branchNoExec" title="Branch 3 was not executed"> # </span>]:<span class="lineCov">          5 :     if (event &amp; APR_POLLIN)</span>
<span class="lineNum">         </span>        [<span class="branchCov" title="Branch 4 was taken 4 times"> + </span><span class="branchCov" title="Branch 5 was taken 1 time"> + </span>]
<span class="lineNum">      37 </span>                :<span class="lineCov">          4 :         rv |= POLLIN;</span>
<span class="lineNum">      38 </span>[<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>][<span class="branchNoExec" title="Branch 2 was not executed"> # </span><span class="branchNoExec" title="Branch 3 was not executed"> # </span>]:<span class="lineCov">          5 :     if (event &amp; APR_POLLPRI)</span>
<span class="lineNum">         </span>        [<span class="branchNoCov" title="Branch 4 was not taken"> - </span><span class="branchCov" title="Branch 5 was taken 5 times"> + </span>]
<span class="lineNum">      39 </span>                :<span class="lineNoCov">          0 :         rv |= POLLPRI;</span>
<span class="lineNum">      40 </span>[<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>][<span class="branchNoExec" title="Branch 2 was not executed"> # </span><span class="branchNoExec" title="Branch 3 was not executed"> # </span>]:<span class="lineCov">          5 :     if (event &amp; APR_POLLOUT)</span>
<span class="lineNum">         </span>        [<span class="branchCov" title="Branch 4 was taken 1 time"> + </span><span class="branchCov" title="Branch 5 was taken 4 times"> + </span>]
<span class="lineNum">      41 </span>                :<span class="lineCov">          1 :         rv |= POLLOUT;</span>
<span class="lineNum">      42 </span>                :            :     /* POLLERR, POLLHUP, and POLLNVAL aren't valid as requested events */
<span class="lineNum">      43 </span>                :            : 
<span class="lineNum">      44 </span>                :<span class="lineCov">          5 :     return rv;</span>
<span class="lineNum">      45 </span>                :            : }
<a name="46"><span class="lineNum">      46 </span>                :            : </a>
<span class="lineNum">      47 </span>                :            : static apr_int16_t get_revent(apr_int16_t event)
<span class="lineNum">      48 </span>                :<span class="lineCov">          3 : {</span>
<span class="lineNum">      49 </span>                :<span class="lineCov">          3 :     apr_int16_t rv = 0;</span>
<span class="lineNum">      50 </span>                :            : 
<span class="lineNum">      51 </span>        [<span class="branchCov" title="Branch 0 was taken 2 times"> + </span><span class="branchCov" title="Branch 1 was taken 1 time"> + </span>]:<span class="lineCov">          3 :     if (event &amp; POLLIN)</span>
<span class="lineNum">      52 </span>                :<span class="lineCov">          2 :         rv |= APR_POLLIN;</span>
<span class="lineNum">      53 </span>        [<span class="branchNoCov" title="Branch 0 was not taken"> - </span><span class="branchCov" title="Branch 1 was taken 3 times"> + </span>]:<span class="lineCov">          3 :     if (event &amp; POLLPRI)</span>
<span class="lineNum">      54 </span>                :<span class="lineNoCov">          0 :         rv |= APR_POLLPRI;</span>
<span class="lineNum">      55 </span>        [<span class="branchCov" title="Branch 0 was taken 1 time"> + </span><span class="branchCov" title="Branch 1 was taken 2 times"> + </span>]:<span class="lineCov">          3 :     if (event &amp; POLLOUT)</span>
<span class="lineNum">      56 </span>                :<span class="lineCov">          1 :         rv |= APR_POLLOUT;</span>
<span class="lineNum">      57 </span>        [<span class="branchNoCov" title="Branch 0 was not taken"> - </span><span class="branchCov" title="Branch 1 was taken 3 times"> + </span>]:<span class="lineCov">          3 :     if (event &amp; POLLERR)</span>
<span class="lineNum">      58 </span>                :<span class="lineNoCov">          0 :         rv |= APR_POLLERR;</span>
<span class="lineNum">      59 </span>        [<span class="branchNoCov" title="Branch 0 was not taken"> - </span><span class="branchCov" title="Branch 1 was taken 3 times"> + </span>]:<span class="lineCov">          3 :     if (event &amp; POLLHUP)</span>
<span class="lineNum">      60 </span>                :<span class="lineNoCov">          0 :         rv |= APR_POLLHUP;</span>
<span class="lineNum">      61 </span>        [<span class="branchNoCov" title="Branch 0 was not taken"> - </span><span class="branchCov" title="Branch 1 was taken 3 times"> + </span>]:<span class="lineCov">          3 :     if (event &amp; POLLNVAL)</span>
<span class="lineNum">      62 </span>                :<span class="lineNoCov">          0 :         rv |= APR_POLLNVAL;</span>
<span class="lineNum">      63 </span>                :            : 
<span class="lineNum">      64 </span>                :<span class="lineCov">          3 :     return rv;</span>
<span class="lineNum">      65 </span>                :            : }
<span class="lineNum">      66 </span>                :            : 
<span class="lineNum">      67 </span>                :            : #ifdef POLL_USES_POLL
<span class="lineNum">      68 </span>                :            : 
<span class="lineNum">      69 </span>                :            : #define SMALL_POLLSET_LIMIT  8
<span class="lineNum">      70 </span>                :            : 
<span class="lineNum">      71 </span>                :            : APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, apr_int32_t num,
<span class="lineNum">      72 </span>                :            :                                    apr_int32_t *nsds, 
<span class="lineNum">      73 </span>                :            :                                    apr_interval_time_t timeout)
<span class="lineNum">      74 </span>                :<span class="lineCov">          5 : {</span>
<span class="lineNum">      75 </span>                :            :     int i, num_to_poll;
<span class="lineNum">      76 </span>                :            : #ifdef HAVE_VLA
<span class="lineNum">      77 </span>                :            :     /* XXX: I trust that this is a segv when insufficient stack exists? */
<span class="lineNum">      78 </span>                :<span class="lineCov">          5 :     struct pollfd pollset[num];</span>
<span class="lineNum">      79 </span>                :            : #elif defined(HAVE_ALLOCA)
<span class="lineNum">      80 </span>                :            :     struct pollfd *pollset = alloca(sizeof(struct pollfd) * num);
<span class="lineNum">      81 </span>                :            :     if (!pollset)
<span class="lineNum">      82 </span>                :            :         return APR_ENOMEM;
<span class="lineNum">      83 </span>                :            : #else
<span class="lineNum">      84 </span>                :            :     struct pollfd tmp_pollset[SMALL_POLLSET_LIMIT];
<span class="lineNum">      85 </span>                :            :     struct pollfd *pollset;
<span class="lineNum">      86 </span>                :            : 
<span class="lineNum">      87 </span>                :            :     if (num &lt;= SMALL_POLLSET_LIMIT) {
<span class="lineNum">      88 </span>                :            :         pollset = tmp_pollset;
<span class="lineNum">      89 </span>                :            :     }
<span class="lineNum">      90 </span>                :            :     else {
<span class="lineNum">      91 </span>                :            :         /* This does require O(n) to copy the descriptors to the internal
<span class="lineNum">      92 </span>                :            :          * mapping.
<span class="lineNum">      93 </span>                :            :          */
<span class="lineNum">      94 </span>                :            :         pollset = malloc(sizeof(struct pollfd) * num);
<span class="lineNum">      95 </span>                :            :         /* The other option is adding an apr_pool_abort() fn to invoke
<span class="lineNum">      96 </span>                :            :          * the pool's out of memory handler
<span class="lineNum">      97 </span>                :            :          */
<span class="lineNum">      98 </span>                :            :         if (!pollset)
<span class="lineNum">      99 </span>                :            :             return APR_ENOMEM;
<span class="lineNum">     100 </span>                :            :     }
<span class="lineNum">     101 </span>                :            : #endif
<span class="lineNum">     102 </span>        [<span class="branchCov" title="Branch 0 was taken 5 times"> + </span><span class="branchCov" title="Branch 1 was taken 5 times"> + </span>]:<span class="lineCov">         10 :     for (i = 0; i &lt; num; i++) {</span>
<span class="lineNum">     103 </span>        [<span class="branchCov" title="Branch 0 was taken 5 times"> + </span><span class="branchNoCov" title="Branch 1 was not taken"> - </span>]:<span class="lineCov">          5 :         if (aprset[i].desc_type == APR_POLL_SOCKET) {</span>
<span class="lineNum">     104 </span>                :<span class="lineCov">          5 :             pollset[i].fd = aprset[i].desc.s-&gt;socketdes;</span>
<span class="lineNum">     105 </span>                :            :         }
<span class="lineNum">     106 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :         else if (aprset[i].desc_type == APR_POLL_FILE) {</span>
<span class="lineNum">     107 </span>                :<span class="lineNoCov">          0 :             pollset[i].fd = aprset[i].desc.f-&gt;filedes;</span>
<span class="lineNum">     108 </span>                :            :         }
<span class="lineNum">     109 </span>                :            :         else {
<span class="lineNum">     110 </span>                :<span class="lineNoCov">          0 :             break;</span>
<span class="lineNum">     111 </span>                :            :         }
<span class="lineNum">     112 </span>                :<span class="lineCov">         10 :         pollset[i].events = get_event(aprset[i].reqevents);</span>
<span class="lineNum">     113 </span>                :            :     }
<span class="lineNum">     114 </span>                :<span class="lineCov">          5 :     num_to_poll = i;</span>
<span class="lineNum">     115 </span>                :            : 
<span class="lineNum">     116 </span>        [<span class="branchCov" title="Branch 0 was taken 1 time"> + </span><span class="branchCov" title="Branch 1 was taken 4 times"> + </span>]:<span class="lineCov">          5 :     if (timeout &gt; 0) {</span>
<span class="lineNum">     117 </span>                :<span class="lineCov">          1 :         timeout /= 1000; /* convert microseconds to milliseconds */</span>
<span class="lineNum">     118 </span>                :            :     }
<span class="lineNum">     119 </span>                :            : 
<span class="lineNum">     120 </span>                :<span class="lineCov">          5 :     i = poll(pollset, num_to_poll, timeout);</span>
<span class="lineNum">     121 </span>                :<span class="lineCov">          5 :     (*nsds) = i;</span>
<span class="lineNum">     122 </span>                :            : 
<span class="lineNum">     123 </span>        [<span class="branchCov" title="Branch 0 was taken 3 times"> + </span><span class="branchCov" title="Branch 1 was taken 2 times"> + </span>]:<span class="lineCov">          5 :     if (i &gt; 0) { /* poll() sets revents only if an event was signalled;</span>
<span class="lineNum">     124 </span>                :            :                   * we don't promise to set rtnevents unless an event
<span class="lineNum">     125 </span>                :            :                   * was signalled
<span class="lineNum">     126 </span>                :            :                   */
<span class="lineNum">     127 </span>        [<span class="branchCov" title="Branch 0 was taken 3 times"> + </span><span class="branchCov" title="Branch 1 was taken 3 times"> + </span>]:<span class="lineCov">          6 :         for (i = 0; i &lt; num; i++) {</span>
<span class="lineNum">     128 </span>                :<span class="lineCov">          3 :             aprset[i].rtnevents = get_revent(pollset[i].revents);</span>
<span class="lineNum">     129 </span>                :            :         }
<span class="lineNum">     130 </span>                :            :     }
<span class="lineNum">     131 </span>                :            :     
<span class="lineNum">     132 </span>                :            : #if !defined(HAVE_VLA) &amp;&amp; !defined(HAVE_ALLOCA)
<span class="lineNum">     133 </span>                :            :     if (num &gt; SMALL_POLLSET_LIMIT) {
<span class="lineNum">     134 </span>                :            :         free(pollset);
<span class="lineNum">     135 </span>                :            :     }
<span class="lineNum">     136 </span>                :            : #endif
<span class="lineNum">     137 </span>                :            : 
<span class="lineNum">     138 </span>        [<span class="branchNoCov" title="Branch 0 was not taken"> - </span><span class="branchCov" title="Branch 1 was taken 5 times"> + </span>]:<span class="lineCov">          5 :     if ((*nsds) &lt; 0) {</span>
<span class="lineNum">     139 </span>                :<span class="lineNoCov">          0 :         return apr_get_netos_error();</span>
<span class="lineNum">     140 </span>                :            :     }
<span class="lineNum">     141 </span>        [<span class="branchCov" title="Branch 0 was taken 2 times"> + </span><span class="branchCov" title="Branch 1 was taken 3 times"> + </span>]:<span class="lineCov">          5 :     if ((*nsds) == 0) {</span>
<span class="lineNum">     142 </span>                :<span class="lineCov">          2 :         return APR_TIMEUP;</span>
<span class="lineNum">     143 </span>                :            :     }
<span class="lineNum">     144 </span>                :<span class="lineCov">          5 :     return APR_SUCCESS;</span>
<span class="lineNum">     145 </span>                :            : }
<span class="lineNum">     146 </span>                :            : 
<span class="lineNum">     147 </span>                :            : 
<span class="lineNum">     148 </span>                :            : #endif /* POLL_USES_POLL */
<span class="lineNum">     149 </span>                :            : 
<span class="lineNum">     150 </span>                :            : struct apr_pollset_private_t
<span class="lineNum">     151 </span>                :            : {
<span class="lineNum">     152 </span>                :            :     struct pollfd *pollset;
<span class="lineNum">     153 </span>                :            :     apr_pollfd_t *query_set;
<span class="lineNum">     154 </span>                :            :     apr_pollfd_t *result_set;
<span class="lineNum">     155 </span>                :            : };
<span class="lineNum">     156 </span>                :            : 
<span class="lineNum">     157 </span>                :            : static apr_status_t impl_pollset_create(apr_pollset_t *pollset,
<span class="lineNum">     158 </span>                :            :                                         apr_uint32_t size,
<a name="159"><span class="lineNum">     159 </span>                :            :                                         apr_pool_t *p,</a>
<span class="lineNum">     160 </span>                :            :                                         apr_uint32_t flags)
<span class="lineNum">     161 </span>                :<span class="lineNoCov">          0 : {</span>
<span class="lineNum">     162 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     if (flags &amp; APR_POLLSET_THREADSAFE) {                </span>
<span class="lineNum">     163 </span>                :<span class="lineNoCov">          0 :         return APR_ENOTIMPL;</span>
<span class="lineNum">     164 </span>                :            :     }
<span class="lineNum">     165 </span>                :            : #ifdef WIN32
<span class="lineNum">     166 </span>                :            :     if (!APR_HAVE_LATE_DLL_FUNC(WSAPoll)) {
<span class="lineNum">     167 </span>                :            :         return APR_ENOTIMPL;
<span class="lineNum">     168 </span>                :            :     }
<span class="lineNum">     169 </span>                :            : #endif
<span class="lineNum">     170 </span>                :<span class="lineNoCov">          0 :     pollset-&gt;p = apr_palloc(p, sizeof(apr_pollset_private_t));</span>
<span class="lineNum">     171 </span>                :<span class="lineNoCov">          0 :     pollset-&gt;p-&gt;pollset = apr_palloc(p, size * sizeof(struct pollfd));</span>
<span class="lineNum">     172 </span>                :<span class="lineNoCov">          0 :     pollset-&gt;p-&gt;query_set = apr_palloc(p, size * sizeof(apr_pollfd_t));</span>
<span class="lineNum">     173 </span>                :<span class="lineNoCov">          0 :     pollset-&gt;p-&gt;result_set = apr_palloc(p, size * sizeof(apr_pollfd_t));</span>
<span class="lineNum">     174 </span>                :            : 
<span class="lineNum">     175 </span>                :<span class="lineNoCov">          0 :     return APR_SUCCESS;</span>
<span class="lineNum">     176 </span>                :            : }
<span class="lineNum">     177 </span>                :            : 
<span class="lineNum">     178 </span>                :            : static apr_status_t impl_pollset_add(apr_pollset_t *pollset,
<span class="lineNum">     179 </span>                :            :                                      const apr_pollfd_t *descriptor)
<span class="lineNum">     180 </span>                :<span class="lineNoCov">          0 : {</span>
<span class="lineNum">     181 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     if (pollset-&gt;nelts == pollset-&gt;nalloc) {</span>
<span class="lineNum">     182 </span>                :<span class="lineNoCov">          0 :         return APR_ENOMEM;</span>
<span class="lineNum">     183 </span>                :            :     }
<span class="lineNum">     184 </span>                :            : 
<span class="lineNum">     185 </span>                :<span class="lineNoCov">          0 :     pollset-&gt;p-&gt;query_set[pollset-&gt;nelts] = *descriptor;</span>
<span class="lineNum">     186 </span>                :            : 
<span class="lineNum">     187 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     if (descriptor-&gt;desc_type == APR_POLL_SOCKET) {</span>
<span class="lineNum">     188 </span>                :<span class="lineNoCov">          0 :         pollset-&gt;p-&gt;pollset[pollset-&gt;nelts].fd = descriptor-&gt;desc.s-&gt;socketdes;</span>
<span class="lineNum">     189 </span>                :            :     }
<span class="lineNum">     190 </span>                :            :     else {
<span class="lineNum">     191 </span>                :            : #if APR_FILES_AS_SOCKETS
<span class="lineNum">     192 </span>                :<span class="lineNoCov">          0 :         pollset-&gt;p-&gt;pollset[pollset-&gt;nelts].fd = descriptor-&gt;desc.f-&gt;filedes;</span>
<span class="lineNum">     193 </span>                :            : #else
<span class="lineNum">     194 </span>                :            :         if ((pollset-&gt;flags &amp; APR_POLLSET_WAKEABLE) &amp;&amp;
<span class="lineNum">     195 </span>                :            :             descriptor-&gt;desc.f == pollset-&gt;wakeup_pipe[0])
<span class="lineNum">     196 </span>                :            :             pollset-&gt;p-&gt;pollset[pollset-&gt;nelts].fd = (SOCKET)descriptor-&gt;desc.f-&gt;filedes;
<span class="lineNum">     197 </span>                :            :         else
<span class="lineNum">     198 </span>                :            :             return APR_EBADF;
<span class="lineNum">     199 </span>                :            : #endif
<span class="lineNum">     200 </span>                :            :     }
<span class="lineNum">     201 </span>                :<span class="lineNoCov">          0 :     pollset-&gt;p-&gt;pollset[pollset-&gt;nelts].events =</span>
<span class="lineNum">     202 </span>                :            :         get_event(descriptor-&gt;reqevents);
<span class="lineNum">     203 </span>                :<span class="lineNoCov">          0 :     pollset-&gt;nelts++;</span>
<span class="lineNum">     204 </span>                :            : 
<span class="lineNum">     205 </span>                :<span class="lineNoCov">          0 :     return APR_SUCCESS;</span>
<span class="lineNum">     206 </span>                :            : }
<span class="lineNum">     207 </span>                :            : 
<a name="208"><span class="lineNum">     208 </span>                :            : static apr_status_t impl_pollset_remove(apr_pollset_t *pollset,</a>
<span class="lineNum">     209 </span>                :            :                                         const apr_pollfd_t *descriptor)
<span class="lineNum">     210 </span>                :<span class="lineNoCov">          0 : {</span>
<span class="lineNum">     211 </span>                :            :     apr_uint32_t i;
<span class="lineNum">     212 </span>                :            : 
<span class="lineNum">     213 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     for (i = 0; i &lt; pollset-&gt;nelts; i++) {</span>
<span class="lineNum">     214 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :         if (descriptor-&gt;desc.s == pollset-&gt;p-&gt;query_set[i].desc.s) {</span>
<span class="lineNum">     215 </span>                :            :             /* Found an instance of the fd: remove this and any other copies */
<span class="lineNum">     216 </span>                :<span class="lineNoCov">          0 :             apr_uint32_t dst = i;</span>
<span class="lineNum">     217 </span>                :<span class="lineNoCov">          0 :             apr_uint32_t old_nelts = pollset-&gt;nelts;</span>
<span class="lineNum">     218 </span>                :<span class="lineNoCov">          0 :             pollset-&gt;nelts--;</span>
<span class="lineNum">     219 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :             for (i++; i &lt; old_nelts; i++) {</span>
<span class="lineNum">     220 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :                 if (descriptor-&gt;desc.s == pollset-&gt;p-&gt;query_set[i].desc.s) {</span>
<span class="lineNum">     221 </span>                :<span class="lineNoCov">          0 :                     pollset-&gt;nelts--;</span>
<span class="lineNum">     222 </span>                :            :                 }
<span class="lineNum">     223 </span>                :            :                 else {
<span class="lineNum">     224 </span>                :<span class="lineNoCov">          0 :                     pollset-&gt;p-&gt;pollset[dst] = pollset-&gt;p-&gt;pollset[i];</span>
<span class="lineNum">     225 </span>                :<span class="lineNoCov">          0 :                     pollset-&gt;p-&gt;query_set[dst] = pollset-&gt;p-&gt;query_set[i];</span>
<span class="lineNum">     226 </span>                :<span class="lineNoCov">          0 :                     dst++;</span>
<span class="lineNum">     227 </span>                :            :                 }
<span class="lineNum">     228 </span>                :            :             }
<span class="lineNum">     229 </span>                :<span class="lineNoCov">          0 :             return APR_SUCCESS;</span>
<span class="lineNum">     230 </span>                :            :         }
<span class="lineNum">     231 </span>                :            :     }
<span class="lineNum">     232 </span>                :            : 
<span class="lineNum">     233 </span>                :<span class="lineNoCov">          0 :     return APR_NOTFOUND;</span>
<span class="lineNum">     234 </span>                :            : }
<span class="lineNum">     235 </span>                :            : 
<span class="lineNum">     236 </span>                :            : static apr_status_t impl_pollset_poll(apr_pollset_t *pollset,
<span class="lineNum">     237 </span>                :            :                                       apr_interval_time_t timeout,
<a name="238"><span class="lineNum">     238 </span>                :            :                                       apr_int32_t *num,</a>
<span class="lineNum">     239 </span>                :            :                                       const apr_pollfd_t **descriptors)
<span class="lineNum">     240 </span>                :<span class="lineNoCov">          0 : {</span>
<span class="lineNum">     241 </span>                :            :     int ret;
<span class="lineNum">     242 </span>                :<span class="lineNoCov">          0 :     apr_status_t rv = APR_SUCCESS;</span>
<span class="lineNum">     243 </span>                :            :     apr_uint32_t i, j;
<span class="lineNum">     244 </span>                :            : 
<span class="lineNum">     245 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     if (timeout &gt; 0) {</span>
<span class="lineNum">     246 </span>                :<span class="lineNoCov">          0 :         timeout /= 1000;</span>
<span class="lineNum">     247 </span>                :            :     }
<span class="lineNum">     248 </span>                :            : #ifdef WIN32
<span class="lineNum">     249 </span>                :            :     ret = WSAPoll(pollset-&gt;p-&gt;pollset, pollset-&gt;nelts, (int)timeout);
<span class="lineNum">     250 </span>                :            : #else
<span class="lineNum">     251 </span>                :<span class="lineNoCov">          0 :     ret = poll(pollset-&gt;p-&gt;pollset, pollset-&gt;nelts, timeout);</span>
<span class="lineNum">     252 </span>                :            : #endif
<span class="lineNum">     253 </span>                :<span class="lineNoCov">          0 :     (*num) = ret;</span>
<span class="lineNum">     254 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     if (ret &lt; 0) {</span>
<span class="lineNum">     255 </span>                :<span class="lineNoCov">          0 :         return apr_get_netos_error();</span>
<span class="lineNum">     256 </span>                :            :     }
<span class="lineNum">     257 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     else if (ret == 0) {</span>
<span class="lineNum">     258 </span>                :<span class="lineNoCov">          0 :         return APR_TIMEUP;</span>
<span class="lineNum">     259 </span>                :            :     }
<span class="lineNum">     260 </span>                :            :     else {
<span class="lineNum">     261 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :         for (i = 0, j = 0; i &lt; pollset-&gt;nelts; i++) {</span>
<span class="lineNum">     262 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :             if (pollset-&gt;p-&gt;pollset[i].revents != 0) {</span>
<span class="lineNum">     263 </span>                :            :                 /* Check if the polled descriptor is our
<span class="lineNum">     264 </span>                :            :                  * wakeup pipe. In that case do not put it result set.
<span class="lineNum">     265 </span>                :            :                  */
<span class="lineNum">     266 </span>[<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>][<span class="branchNoExec" title="Branch 2 was not executed"> # </span><span class="branchNoExec" title="Branch 3 was not executed"> # </span>]:<span class="lineNoCov">          0 :                 if ((pollset-&gt;flags &amp; APR_POLLSET_WAKEABLE) &amp;&amp;</span>
<span class="lineNum">         </span>        [<span class="branchNoExec" title="Branch 4 was not executed"> # </span><span class="branchNoExec" title="Branch 5 was not executed"> # </span>]
<span class="lineNum">     267 </span>                :            :                     pollset-&gt;p-&gt;query_set[i].desc_type == APR_POLL_FILE &amp;&amp;
<span class="lineNum">     268 </span>                :            :                     pollset-&gt;p-&gt;query_set[i].desc.f == pollset-&gt;wakeup_pipe[0]) {
<span class="lineNum">     269 </span>                :<span class="lineNoCov">          0 :                         apr_pollset_drain_wakeup_pipe(pollset);</span>
<span class="lineNum">     270 </span>                :<span class="lineNoCov">          0 :                         rv = APR_EINTR;</span>
<span class="lineNum">     271 </span>                :            :                 }
<span class="lineNum">     272 </span>                :            :                 else {
<span class="lineNum">     273 </span>                :<span class="lineNoCov">          0 :                     pollset-&gt;p-&gt;result_set[j] = pollset-&gt;p-&gt;query_set[i];</span>
<span class="lineNum">     274 </span>                :<span class="lineNoCov">          0 :                     pollset-&gt;p-&gt;result_set[j].rtnevents =</span>
<span class="lineNum">     275 </span>                :            :                         get_revent(pollset-&gt;p-&gt;pollset[i].revents);
<span class="lineNum">     276 </span>                :<span class="lineNoCov">          0 :                     j++;</span>
<span class="lineNum">     277 </span>                :            :                 }
<span class="lineNum">     278 </span>                :            :             }
<span class="lineNum">     279 </span>                :            :         }
<span class="lineNum">     280 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :         if (((*num) = j) &gt; 0)</span>
<span class="lineNum">     281 </span>                :<span class="lineNoCov">          0 :             rv = APR_SUCCESS;</span>
<span class="lineNum">     282 </span>                :            :     }
<span class="lineNum">     283 </span>[<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>][<span class="branchNoExec" title="Branch 2 was not executed"> # </span><span class="branchNoExec" title="Branch 3 was not executed"> # </span>]:<span class="lineNoCov">          0 :     if (descriptors &amp;&amp; (*num))</span>
<span class="lineNum">     284 </span>                :<span class="lineNoCov">          0 :         *descriptors = pollset-&gt;p-&gt;result_set;</span>
<span class="lineNum">     285 </span>                :<span class="lineNoCov">          0 :     return rv;</span>
<span class="lineNum">     286 </span>                :            : }
<span class="lineNum">     287 </span>                :            : 
<span class="lineNum">     288 </span>                :            : static apr_pollset_provider_t impl = {
<span class="lineNum">     289 </span>                :            :     impl_pollset_create,
<span class="lineNum">     290 </span>                :            :     impl_pollset_add,
<span class="lineNum">     291 </span>                :            :     impl_pollset_remove,
<span class="lineNum">     292 </span>                :            :     impl_pollset_poll,
<span class="lineNum">     293 </span>                :            :     NULL,
<span class="lineNum">     294 </span>                :            :     &quot;poll&quot;
<span class="lineNum">     295 </span>                :            : };
<span class="lineNum">     296 </span>                :            : 
<span class="lineNum">     297 </span>                :            : apr_pollset_provider_t *apr_pollset_provider_poll = &amp;impl;
<span class="lineNum">     298 </span>                :            : 
<span class="lineNum">     299 </span>                :            : /* Poll method pollcb.
<span class="lineNum">     300 </span>                :            :  * This is probably usable only for WIN32 having WSAPoll
<span class="lineNum">     301 </span>                :            :  */
<span class="lineNum">     302 </span>                :            : static apr_status_t impl_pollcb_create(apr_pollcb_t *pollcb,
<span class="lineNum">     303 </span>                :            :                                        apr_uint32_t size,
<a name="304"><span class="lineNum">     304 </span>                :            :                                        apr_pool_t *p,</a>
<span class="lineNum">     305 </span>                :            :                                        apr_uint32_t flags)
<span class="lineNum">     306 </span>                :<span class="lineCov">          1 : {</span>
<span class="lineNum">     307 </span>                :            : #if APR_HAS_THREADS
<span class="lineNum">     308 </span>                :<span class="lineCov">          1 :   return APR_ENOTIMPL;</span>
<span class="lineNum">     309 </span>                :            : #endif
<span class="lineNum">     310 </span>                :            : 
<span class="lineNum">     311 </span>                :            :     pollcb-&gt;fd = -1;
<span class="lineNum">     312 </span>                :            : #ifdef WIN32
<span class="lineNum">     313 </span>                :            :     if (!APR_HAVE_LATE_DLL_FUNC(WSAPoll)) {
<span class="lineNum">     314 </span>                :            :         return APR_ENOTIMPL;
<span class="lineNum">     315 </span>                :            :     }
<span class="lineNum">     316 </span>                :            : #endif
<span class="lineNum">     317 </span>                :            : 
<span class="lineNum">     318 </span>                :            :     pollcb-&gt;pollset.ps = apr_palloc(p, size * sizeof(struct pollfd));
<span class="lineNum">     319 </span>                :            :     pollcb-&gt;copyset = apr_palloc(p, size * sizeof(apr_pollfd_t *));
<span class="lineNum">     320 </span>                :            : 
<span class="lineNum">     321 </span>                :            :     return APR_SUCCESS;
<span class="lineNum">     322 </span>                :            : }
<span class="lineNum">     323 </span>                :            : 
<span class="lineNum">     324 </span>                :            : static apr_status_t impl_pollcb_add(apr_pollcb_t *pollcb,
<span class="lineNum">     325 </span>                :            :                                     apr_pollfd_t *descriptor)
<span class="lineNum">     326 </span>                :<span class="lineNoCov">          0 : {</span>
<span class="lineNum">     327 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     if (pollcb-&gt;nelts == pollcb-&gt;nalloc) {</span>
<span class="lineNum">     328 </span>                :<span class="lineNoCov">          0 :         return APR_ENOMEM;</span>
<span class="lineNum">     329 </span>                :            :     }
<span class="lineNum">     330 </span>                :            : 
<span class="lineNum">     331 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     if (descriptor-&gt;desc_type == APR_POLL_SOCKET) {</span>
<span class="lineNum">     332 </span>                :<span class="lineNoCov">          0 :         pollcb-&gt;pollset.ps[pollcb-&gt;nelts].fd = descriptor-&gt;desc.s-&gt;socketdes;</span>
<span class="lineNum">     333 </span>                :            :     }
<span class="lineNum">     334 </span>                :            :     else {
<span class="lineNum">     335 </span>                :            : #if APR_FILES_AS_SOCKETS
<span class="lineNum">     336 </span>                :<span class="lineNoCov">          0 :         pollcb-&gt;pollset.ps[pollcb-&gt;nelts].fd = descriptor-&gt;desc.f-&gt;filedes;</span>
<span class="lineNum">     337 </span>                :            : #else
<span class="lineNum">     338 </span>                :            :         return APR_EBADF;
<span class="lineNum">     339 </span>                :            : #endif
<span class="lineNum">     340 </span>                :            :     }
<span class="lineNum">     341 </span>                :            : 
<span class="lineNum">     342 </span>                :<span class="lineNoCov">          0 :     pollcb-&gt;pollset.ps[pollcb-&gt;nelts].events =</span>
<span class="lineNum">     343 </span>                :            :         get_event(descriptor-&gt;reqevents);
<span class="lineNum">     344 </span>                :<span class="lineNoCov">          0 :     pollcb-&gt;copyset[pollcb-&gt;nelts] = descriptor;</span>
<span class="lineNum">     345 </span>                :<span class="lineNoCov">          0 :     pollcb-&gt;nelts++;</span>
<span class="lineNum">     346 </span>                :            :     
<span class="lineNum">     347 </span>                :<span class="lineNoCov">          0 :     return APR_SUCCESS;</span>
<span class="lineNum">     348 </span>                :            : }
<span class="lineNum">     349 </span>                :            : 
<a name="350"><span class="lineNum">     350 </span>                :            : static apr_status_t impl_pollcb_remove(apr_pollcb_t *pollcb,</a>
<span class="lineNum">     351 </span>                :            :                                        apr_pollfd_t *descriptor)
<span class="lineNum">     352 </span>                :<span class="lineNoCov">          0 : {</span>
<span class="lineNum">     353 </span>                :            :     apr_uint32_t i;
<span class="lineNum">     354 </span>                :            : 
<span class="lineNum">     355 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     for (i = 0; i &lt; pollcb-&gt;nelts; i++) {</span>
<span class="lineNum">     356 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :         if (descriptor-&gt;desc.s == pollcb-&gt;copyset[i]-&gt;desc.s) {</span>
<span class="lineNum">     357 </span>                :            :             /* Found an instance of the fd: remove this and any other copies */
<span class="lineNum">     358 </span>                :<span class="lineNoCov">          0 :             apr_uint32_t dst = i;</span>
<span class="lineNum">     359 </span>                :<span class="lineNoCov">          0 :             apr_uint32_t old_nelts = pollcb-&gt;nelts;</span>
<span class="lineNum">     360 </span>                :<span class="lineNoCov">          0 :             pollcb-&gt;nelts--;</span>
<span class="lineNum">     361 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :             for (i++; i &lt; old_nelts; i++) {</span>
<span class="lineNum">     362 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :                 if (descriptor-&gt;desc.s == pollcb-&gt;copyset[i]-&gt;desc.s) {</span>
<span class="lineNum">     363 </span>                :<span class="lineNoCov">          0 :                     pollcb-&gt;nelts--;</span>
<span class="lineNum">     364 </span>                :            :                 }
<span class="lineNum">     365 </span>                :            :                 else {
<span class="lineNum">     366 </span>                :<span class="lineNoCov">          0 :                     pollcb-&gt;pollset.ps[dst] = pollcb-&gt;pollset.ps[i];</span>
<span class="lineNum">     367 </span>                :<span class="lineNoCov">          0 :                     pollcb-&gt;copyset[dst] = pollcb-&gt;copyset[i];</span>
<span class="lineNum">     368 </span>                :<span class="lineNoCov">          0 :                     dst++;</span>
<span class="lineNum">     369 </span>                :            :                 }
<span class="lineNum">     370 </span>                :            :             }
<span class="lineNum">     371 </span>                :<span class="lineNoCov">          0 :             return APR_SUCCESS;</span>
<span class="lineNum">     372 </span>                :            :         }
<span class="lineNum">     373 </span>                :            :     }
<span class="lineNum">     374 </span>                :            : 
<span class="lineNum">     375 </span>                :<span class="lineNoCov">          0 :     return APR_NOTFOUND;</span>
<span class="lineNum">     376 </span>                :            : }
<span class="lineNum">     377 </span>                :            : 
<span class="lineNum">     378 </span>                :            : static apr_status_t impl_pollcb_poll(apr_pollcb_t *pollcb,
<span class="lineNum">     379 </span>                :            :                                      apr_interval_time_t timeout,
<a name="380"><span class="lineNum">     380 </span>                :            :                                      apr_pollcb_cb_t func,</a>
<span class="lineNum">     381 </span>                :            :                                      void *baton)
<span class="lineNum">     382 </span>                :<span class="lineNoCov">          0 : {</span>
<span class="lineNum">     383 </span>                :            :     int ret;
<span class="lineNum">     384 </span>                :<span class="lineNoCov">          0 :     apr_status_t rv = APR_SUCCESS;</span>
<span class="lineNum">     385 </span>                :            :     apr_uint32_t i;
<span class="lineNum">     386 </span>                :            : 
<span class="lineNum">     387 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     if (timeout &gt; 0) {</span>
<span class="lineNum">     388 </span>                :<span class="lineNoCov">          0 :         timeout /= 1000;</span>
<span class="lineNum">     389 </span>                :            :     }
<span class="lineNum">     390 </span>                :            : #ifdef WIN32
<span class="lineNum">     391 </span>                :            :     ret = WSAPoll(pollcb-&gt;pollset.ps, pollcb-&gt;nelts, (int)timeout);
<span class="lineNum">     392 </span>                :            : #else
<span class="lineNum">     393 </span>                :<span class="lineNoCov">          0 :     ret = poll(pollcb-&gt;pollset.ps, pollcb-&gt;nelts, timeout);</span>
<span class="lineNum">     394 </span>                :            : #endif
<span class="lineNum">     395 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     if (ret &lt; 0) {</span>
<span class="lineNum">     396 </span>                :<span class="lineNoCov">          0 :         return apr_get_netos_error();</span>
<span class="lineNum">     397 </span>                :            :     }
<span class="lineNum">     398 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :     else if (ret == 0) {</span>
<span class="lineNum">     399 </span>                :<span class="lineNoCov">          0 :         return APR_TIMEUP;</span>
<span class="lineNum">     400 </span>                :            :     }
<span class="lineNum">     401 </span>                :            :     else {
<span class="lineNum">     402 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :         for (i = 0; i &lt; pollcb-&gt;nelts; i++) {</span>
<span class="lineNum">     403 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :             if (pollcb-&gt;pollset.ps[i].revents != 0) {</span>
<span class="lineNum">     404 </span>                :<span class="lineNoCov">          0 :                 apr_pollfd_t *pollfd = pollcb-&gt;copyset[i];</span>
<span class="lineNum">     405 </span>                :<span class="lineNoCov">          0 :                 pollfd-&gt;rtnevents = get_revent(pollcb-&gt;pollset.ps[i].revents);                    </span>
<span class="lineNum">     406 </span>                :<span class="lineNoCov">          0 :                 rv = func(baton, pollfd);</span>
<span class="lineNum">     407 </span>        [<span class="branchNoExec" title="Branch 0 was not executed"> # </span><span class="branchNoExec" title="Branch 1 was not executed"> # </span>]:<span class="lineNoCov">          0 :                 if (rv) {</span>
<span class="lineNum">     408 </span>                :<span class="lineNoCov">          0 :                     return rv;</span>
<span class="lineNum">     409 </span>                :            :                 }
<span class="lineNum">     410 </span>                :            :             }
<span class="lineNum">     411 </span>                :            :         }
<span class="lineNum">     412 </span>                :            :     }
<span class="lineNum">     413 </span>                :<span class="lineNoCov">          0 :     return rv;</span>
<span class="lineNum">     414 </span>                :            : }
<span class="lineNum">     415 </span>                :            : 
<span class="lineNum">     416 </span>                :            : static apr_pollcb_provider_t impl_cb = {
<span class="lineNum">     417 </span>                :            :     impl_pollcb_create,
<span class="lineNum">     418 </span>                :            :     impl_pollcb_add,
<span class="lineNum">     419 </span>                :            :     impl_pollcb_remove,
<span class="lineNum">     420 </span>                :            :     impl_pollcb_poll,
<span class="lineNum">     421 </span>                :            :     &quot;poll&quot;
<span class="lineNum">     422 </span>                :            : };
<span class="lineNum">     423 </span>                :            : 
<span class="lineNum">     424 </span>                :            : apr_pollcb_provider_t *apr_pollcb_provider_poll = &amp;impl_cb;
<span class="lineNum">     425 </span>                :            : 
<span class="lineNum">     426 </span>                :            : #endif /* HAVE_POLL */
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
    <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.9</a></td></tr>
  </table>
  <br>

</body>
</html>
